#pragma once

#include <QObject>

#include "../../entity/User.h"
#include "utils/enum/StatusCode.h"

class UserService : public QObject {
    Q_OBJECT

public:
    static UserService &getInstance();

    StatusCode login(User user);

    StatusCode registerUser(User user);

private:
    UserService() {
    };

    ~UserService() {
    };

    UserService(const UserService &) = delete;

    UserService &operator=(const UserService &) = delete;
};
